using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Server.Network;
using Arrowgene.Ddon.Shared.Network;
using Arrowgene.Logging;

namespace Arrowgene.Ddon.GameServer.Handler
{
    public class AreaGetAreaMasterInfoHandler : PacketHandler<GameClient>
    {
        private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(AreaGetAreaMasterInfoHandler));

        private static readonly byte[] PcapData = new byte[] { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x00,0x00,0x00,0x0F,0x00,0x00,0x63,0x38,0x00,0x00,0x1A,0x5E,0x00,0x00,0x14,0x82,0x00,0x00,0x63,0x38,0x00,0x00,0x00,0x0E,0x00,0x00,0x03,0xB1,0x00,0x00,0x03,0xB2,0x00,0x00,0x03,0x8F,0x00,0x00,0x03,0xB3,0x00,0x00,0x03,0xB4,0x00,0x00,0x03,0x91,0x00,0x00,0x03,0xB5,0x00,0x00,0x03,0x90,0x00,0x00,0x03,0xB6,0x00,0x00,0x03,0x92,0x00,0x00,0x03,0xBF,0x00,0x00,0x03,0xB9,0x00,0x00,0x03,0x93,0x00,0x00,0x03,0x94,0x01,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x2C,0xF6,0x00,0x03,0x00,0x00,0x03,0xE8,0x00,0x00,0x00,0x03,0x00,0x00,0x3E,0x51,0x00,0x03,0x00,0x00,0x3E,0x52,0x00,0x03,0x00,0x00,0x27,0x95,0x00,0x02,0x00,0x00,0x09,0xC4,0x00,0x00,0x00,0x03,0x00,0x00,0x3E,0x51,0x00,0x04,0x00,0x00,0x3E,0x52,0x00,0x04,0x00,0x00,0x27,0x95,0x00,0x02,0x00,0x00,0x13,0x88,0x00,0x00,0x00,0x06,0x00,0x00,0x3E,0x51,0x00,0x05,0x00,0x00,0x3E,0x52,0x00,0x05,0x00,0x00,0x27,0x95,0x00,0x03,0x00,0x00,0x3E,0x53,0x00,0x03,0x00,0x00,0x3E,0x84,0x00,0x02,0x00,0x00,0x3E,0x43,0x00,0x01,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x03,0x03,0x96,0xD6,0xA8,0x00,0x00,0x00,0x06,0x03,0x96,0xD6,0xA9,0x00,0x00,0x00,0x09,0x03,0x96,0xD6,0xAA,0x00,0x00,0x00,0x0C,0x03,0x96,0xD6,0xAB,0x00,0x00,0x00,0x0E,0x03,0x96,0xD6,0xAC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };

        public AreaGetAreaMasterInfoHandler(DdonGameServer server) : base(server)
        {
        }

        public override PacketId Id => PacketId.C2S_AREA_GET_AREA_MASTER_INFO_REQ;

        public override void Handle(GameClient client, IPacket request)
        {
            Packet response = new Packet(PacketId.S2C_AREA_GET_AREA_MASTER_INFO_RES, PcapData);
            client.Send(response);
        }
    }
}
